package test04.file.appenders.boss;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import test04.file.appenders.common.LogInfo;

public class Boss implements LogInfo {
	private static final Logger logger = Logger.getLogger(Boss.class);

	public static void main(String[] args) {
		// !!!!!!! CONFIGURATION OBLIGATORY
		PropertyConfigurator.configure("C:/Documents and Settings/"
				+ "Bozhidar Bozhanov/Desktop/installs/eclipse2/workspace/"
				+ "test-logging/src/test04/file/appenders/resources/"
				+ "log4j.properties");

	}

	@Override
	public void generateLogInfo() {
		logger.trace("TRACE message from Boss");
		logger.debug("DEBUG message from Boss");
		logger.info("INFO message from Boss");
		logger.warn("WARN message from Boss");
		logger.error("ERROR message from Boss");
		logger.fatal("FATAL message from Boss");
		logger.fatal("Фатално съобщение от Boss");
	}
}
